package com.cn.service;

import com.cn.cloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PEOPLE-SERVICE")
public interface DtgxPeopleService {

    @GetMapping(value = "/people/get/{id}")
    public CommonResult getPeopleById(@PathVariable("id") Long id);

}
